// pages/func/pull-up-loading/1/index.js
const { $wx, $http, img } = getApp()
Page({
    data: {
        img,
        data:[]
    },
    async paging(o){ await $http.paging(this, 'room', o ) },
    onLoad() {
        this.paging()
    },
    onUnload(){
        $http.abort(this)
    },
    onPullDownRefresh(){
        $wx.refresh_paging(this)
    },
    onReachBottom() {
        this.paging()
    }
})